/**
 * Description: SystemAnnouncementService.java
 * Copyright (c) 2008-2009  Neo. 
 * All Rights Reserved.
 * @version 1.0  Mar 29, 2009 12:31:11 PM 李萌（neolimeng@gmail.com）created
 */
package org.paradise.dms.services;

import java.util.List;

import org.paradise.dms.pojo.SystemAnnouncement;
import org.springframework.stereotype.Service;

/**
 * Description: 
 * Copyright (c) 2008-2009  Neo. 
 * All Rights Reserved.
 * @version 1.0  Mar 29, 2009 12:31:11 PM 李萌（neolimeng@gmail.com）created
 */
@Service
public interface SystemAnnouncementService {
	/**
	 * 
	 * Description:
	 * Service-增加一条公告 
	 * @Version1.0 Mar 29, 2009 12:33:31 PM 李萌（neolimeng@gmail.com）创建
	 * @param systemannouncement
	 * @return
	 */
	public boolean insertSystemAnnouncement(SystemAnnouncement systemannouncement);
	/**
	 * 
	 * Description:
	 * Service-更新一条公告 
	 * @Version1.0 Mar 29, 2009 12:34:10 PM 李萌（neolimeng@gmail.com）创建
	 * @param systemannouncement
	 * @return
	 */
	public boolean updateSystemAnnouncement(SystemAnnouncement systemannouncement);
	/**
	 * 
	 * Description:
	 * Service-删除一条公告 
	 * @Version1.0 Mar 29, 2009 12:34:27 PM 李萌（neolimeng@gmail.com）创建
	 * @param systemannouncementid
	 * @return
	 */
	public boolean deleteSystemAnnouncement(int systemannouncementid);
	/**
	 * 
	 * Description:
	 * Service-根据公告ID取得一条公告信息 
	 * @Version1.0 Mar 29, 2009 12:35:33 PM 李萌（neolimeng@gmail.com）创建
	 * @param systemannouncementid
	 * @return
	 */
	public SystemAnnouncement getSystemAnnouncement(int systemannouncementid);
	/**
	 * 
	 * Description:
	 * Service-取得全部公告信息 
	 * @Version1.0 Mar 29, 2009 10:12:56 PM 李萌（neolimeng@gmail.com）创建
	 * @return
	 */
	public List<SystemAnnouncement> getAllSystemAnnouncement();
	
	public int getAllRows();
	
	public List<SystemAnnouncement> listAllSystemAnnouncement(int pageSize,int startRow);
}

